package cn.java75.school.model;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class Travel {
    @JSONField(name = "id")
    private Long id;
    @JSONField(name = "deal_date")
    private Date dealDate;
    @JSONField(name = "close_date")
    private Date closeDate;
    @JSONField(name = "card_no")
    private String cardNo;
    @JSONField(name = "deal_value")
    private Integer dealValue;
    @JSONField(name = "deal_type")
    private String dealType;
    @JSONField(name = "company_name")
    private String companyName;
    @JSONField(name = "car_no")
    private String carNo;
    @JSONField(name = "station")
    private String station;
    @JSONField(name = "conn_mark")
    private String connMark;
    @JSONField(name = "deal_money")
    private Integer dealMoney;
    @JSONField(name = "equ_no")
    private String equNo;
//    private Date dealDate;
//
//    private Date closeDate;
//
//    private String cardNo;
//
//    private Integer dealValue;
//
//    private String dealType;
//
//    private String companyName;
//
//    private String carNo;
//
//    private String station;
//
//    private String connMark;
//
//    private Integer dealMoney;
//
//    private String equNo;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getDealDate() {
        return dealDate;
    }

    public void setDealDate(Date dealDate) {
        this.dealDate = dealDate;
    }

    public Date getCloseDate() {
        return closeDate;
    }

    public void setCloseDate(Date closeDate) {
        this.closeDate = closeDate;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo == null ? null : cardNo.trim();
    }

    public Integer getDealValue() {
        return dealValue;
    }

    public void setDealValue(Integer dealValue) {
        this.dealValue = dealValue;
    }

    public String getDealType() {
        return dealType;
    }

    public void setDealType(String dealType) {
        this.dealType = dealType == null ? null : dealType.trim();
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName == null ? null : companyName.trim();
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo == null ? null : carNo.trim();
    }

    public String getStation() {
        return station;
    }

    public void setStation(String station) {
        this.station = station == null ? null : station.trim();
    }

    public String getConnMark() {
        return connMark;
    }

    public void setConnMark(String connMark) {
        this.connMark = connMark == null ? null : connMark.trim();
    }

    public Integer getDealMoney() {
        return dealMoney;
    }

    public void setDealMoney(Integer dealMoney) {
        this.dealMoney = dealMoney;
    }

    public String getEquNo() {
        return equNo;
    }

    public void setEquNo(String equNo) {
        this.equNo = equNo == null ? null : equNo.trim();
    }

    @Override
    public String toString() {
        return "Travel{" +
                "id=" + id +
                ", dealDate=" + dealDate +
                ", closeDate=" + closeDate +
                ", cardNo='" + cardNo + '\'' +
                ", dealValue=" + dealValue +
                ", dealType='" + dealType + '\'' +
                ", companyName='" + companyName + '\'' +
                ", carNo='" + carNo + '\'' +
                ", station='" + station + '\'' +
                ", connMark='" + connMark + '\'' +
                ", dealMoney=" + dealMoney +
                ", equNo='" + equNo + '\'' +
                '}';
    }
}